package com.qa.dom.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 回放表
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public class Returnplay extends Model<Returnplay> {

    private static final long serialVersionUID = 1L;

    private String createDateCh;

    private String imgPath;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 老师id
     */
	@TableField("teacher_id")
	private Integer teacherId;
    /**
     * 上传时间
     */
	@TableField("upload_date")
	private Date uploadDate;
    /**
     * 视频播放url
     */
	@TableField("video_url")
	private String videoUrl;
    /**
     * 图片封面url
     */
	@TableField("img_url")
	private String imgUrl;
    /**
     * 提问者id
     */
	@TableField("answer_id")
	private Integer answerId;
    /**
     * 聊天记录
     */
	private String content;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(Integer teacherId) {
		this.teacherId = teacherId;
	}

	public Date getUploadDate() {
		return uploadDate;
	}

	public void setUploadDate(Date uploadDate) {
		this.uploadDate = uploadDate;
	}

	public String getVideoUrl() {
		return videoUrl;
	}

	public void setVideoUrl(String videoUrl) {
		this.videoUrl = videoUrl;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Integer getAnswerId() {
		return answerId;
	}

	public void setAnswerId(Integer answerId) {
		this.answerId = answerId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getCreateDateCh() {
		return createDateCh;
	}

	public void setCreateDateCh(String createDateCh) {
		this.createDateCh = createDateCh;
	}

	public String getImgPath() {
		return imgPath;
	}

	public void setImgPath(String imgPath) {
		this.imgPath = imgPath;
	}

	@Override
	public String toString() {
		return "Returnplay{" +
			", id=" + id +
			", teacherId=" + teacherId +
			", uploadDate=" + uploadDate +
			", videoUrl=" + videoUrl +
			", imgUrl=" + imgUrl +
			", answerId=" + answerId +
			", content=" + content +
			", createDate=" + createDate +
			"}";
	}
}
